package com.lu.pojo.functionInterface;

import java.util.function.Consumer;

/**
 * @author luzhenfang
 * @date 2020 07 13
 * @description 消费接口
 */
public class Consume  {
    public static void main(String[] args) {
        happy(1000,m-> System.out.println("已消费"+m));
    }

    public static void happy(double money, Consumer<Double>con){
        con.accept(money);
    }
}
